package com.wuyan.locationdog.adapter

import android.widget.ImageView
import android.widget.TextView
import androidx.annotation.LayoutRes
import com.arcsoft.commonbase.bean.DeviceShareCustomBean
import com.arcsoft.commonbase.ext.loadImageCircleCar
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.wuyan.locationdog.R


class DeviceList3ShareAdapter(@LayoutRes layoutResId: Int, data: MutableList<DeviceShareCustomBean>?) :
    BaseQuickAdapter<DeviceShareCustomBean, BaseViewHolder>(layoutResId, data) {


    override fun convert(holder: BaseViewHolder, item: DeviceShareCustomBean) {
        holder.apply {
            getView<TextView>(R.id.deviceName).text = item.deviceName
            getView<TextView>(R.id.deviceId).text = "设备ID：" + item.imei
            getView<ImageView>(R.id.deviceAvatarUrl).loadImageCircleCar(item.deviceAvatarUrl)


        }
    }
}


